﻿using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace TaskManagement.Jobs
{
    public class PingJob : IJob

    {
        public Task Execute(IJobExecutionContext context)
        {
            var content = context.JobDetail.JobDataMap.GetString("content");
            Console.WriteLine($"Ping的任务执行时间:{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"+ "内容为:" + content);
            return Task.CompletedTask;
        }
    }
}